package GUI.Visualizacion;

import java.awt.*;
import javax.swing.*;
import java.util.*;
import java.util.ArrayList;
import javax.swing.plaf.basic.BasicComboBoxRenderer;
import BL.BLAlmacen;
////import lp2.juego.simulacion.base.*;

public class GrillaVertical extends JPanel{
    private int dy;
    BLAlmacen blAlmacen;

    public GrillaVertical() {
        dy=0;       
        blAlmacen = new BLAlmacen();
    }

    public int getDy() {
        return dy;
    }

    public void setDy(int dy) {
        this.dy = dy;
    }

    public @Override void paintComponent(Graphics g){
        for (Integer i=blAlmacen.getLargo(); i>=1; i--)
            g.drawString("   "+i.toString(), 0,i*Escenario.ALTO_IMAGEN-24-dy);
    }
}
